package homework.Game;
/**
 * 盗贼类
 */
public class Robber extends Professional implements Rob,Attack{
    public Robber(){

    }
    public Robber(String name,int level){
        super(name,level);
    }
    /**偷盗的方法*/
    public void rob(){
        System.out.println(
                "我是等级" + this.getLevel() + "的" + this.getName() + "我可以偷盗");
    }
    /**攻击的方法*/
    public void attack(){
        System.out.println("我也可以攻击");
    }
}
